package com.esteel.settlement.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * The persistent class for the TB_SETT_PAY database table.
 * 
 */
@Entity
@Table(name = "TB_SETT_PAY")
@NamedQuery(name = "TbSettPay.findAll", query = "SELECT t FROM TbSettPay t")
public class TbSettPay implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name = "TB_SETT_PAY_PAYID_GENERATOR", sequenceName = "SEQ_SETT_PAY", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "TB_SETT_PAY_PAYID_GENERATOR")
	@Column(name = "PAY_ID")
	private long payId;

	@Column(name = "CCY_CODE")
	private String ccyCode;

	@Column(name = "FUNC_FLAG")
	private int funcFlag;

	@Column(name = "HAND_FEE")
	private double handFee;

	@Column(name = "IN_CUST_ACCT_ID")
	private String inCustAcctId;

	@Column(name = "IN_THIRD_CUST_ID")
	private String inThirdCustId;

	private String note;

	@Column(name = "OUT_CUST_ACCT_ID")
	private String outCustAcctId;

	@Column(name = "OUT_THIRD_CUST_ID")
	private String outThirdCustId;

	@Column(name = "PAY_SERIAL_NO")
	private String paySerialNo;

	private String reserve;

	@Column(name = "THIRD_HT_CONT")
	private String thirdHtCont;

	@Column(name = "THIRD_HT_ID")
	private String thirdHtId;

	@Column(name = "TRAN_AMOUNT")
	private double tranAmount;

	private Integer quantity;
	
	// 0: 初始创建 1:发送成功 2：银行复核成功 3：拒绝复核 4:强制支付 5已解冻 6已撤销
	@Column(name = "STATUS")
	private int status;

	@Column(name = "CHECK_TIME")
	private Date checkTime;

	@Column(name = "TRAN_DATE")
	private Date tranDate;

	// 银行复核结果 Y 复核通过 N复核拒绝
	@Column(name = "CHECK_RESULT")
	private String checkResult;

	// 复核人的子账户
	@Column(name = "CHECK_CUST_ACCT_ID")
	private String checkCustAcctId;

	// 复核人的会员代码
	@Column(name = "CHECK_THIRD_CUST_ID")
	private String checkThirdCustId;

	public TbSettPay() {
	}

	public long getPayId() {
		return this.payId;
	}

	public void setPayId(long payId) {
		this.payId = payId;
	}

	public String getCcyCode() {
		return this.ccyCode;
	}

	public void setCcyCode(String ccyCode) {
		this.ccyCode = ccyCode;
	}

	public int getFuncFlag() {
		return this.funcFlag;
	}

	public void setFuncFlag(int funcFlag) {
		this.funcFlag = funcFlag;
	}

	public double getHandFee() {
		return this.handFee;
	}

	public void setHandFee(double handFee) {
		this.handFee = handFee;
	}

	public String getInCustAcctId() {
		return this.inCustAcctId;
	}

	public void setInCustAcctId(String inCustAcctId) {
		this.inCustAcctId = inCustAcctId;
	}

	public String getInThirdCustId() {
		return this.inThirdCustId;
	}

	public void setInThirdCustId(String inThirdCustId) {
		this.inThirdCustId = inThirdCustId;
	}

	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getOutCustAcctId() {
		return this.outCustAcctId;
	}

	public void setOutCustAcctId(String outCustAcctId) {
		this.outCustAcctId = outCustAcctId;
	}

	public String getOutThirdCustId() {
		return this.outThirdCustId;
	}

	public void setOutThirdCustId(String outThirdCustId) {
		this.outThirdCustId = outThirdCustId;
	}

	public String getPaySerialNo() {
		return this.paySerialNo;
	}

	public void setPaySerialNo(String paySerialNo) {
		this.paySerialNo = paySerialNo;
	}

	public String getReserve() {
		return this.reserve;
	}

	public void setReserve(String reserve) {
		this.reserve = reserve;
	}

	public String getThirdHtCont() {
		return this.thirdHtCont;
	}

	public void setThirdHtCont(String thirdHtCont) {
		this.thirdHtCont = thirdHtCont;
	}

	public String getThirdHtId() {
		return thirdHtId;
	}

	public void setThirdHtId(String thirdHtId) {
		this.thirdHtId = thirdHtId;
	}

	public double getTranAmount() {
		return this.tranAmount;
	}

	public void setTranAmount(double tranAmount) {
		this.tranAmount = tranAmount;
	}

	public int getStatus() {
		return status;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public Date getTranDate() {
		return tranDate;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public void setTranDate(Date tranDate) {
		this.tranDate = tranDate;
	}

	public String getCheckResult() {
		return checkResult;
	}

	public String getCheckCustAcctId() {
		return checkCustAcctId;
	}


	public void setCheckResult(String checkResult) {
		this.checkResult = checkResult;
	}

	public void setCheckCustAcctId(String checkCustAcctId) {
		this.checkCustAcctId = checkCustAcctId;
	}

	public String getCheckThirdCustId() {
		return checkThirdCustId;
	}

	public void setCheckThirdCustId(String checkThirdCustId) {
		this.checkThirdCustId = checkThirdCustId;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}



}